<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
  </head>
  <body>
  <div id="wrapper">
	<!--
	<div id="header">
		<div id="logo">
			<?php echo image_tag("tmdb.jpg"); ?>
		</div>
	</div>
-->
	<!-- end #header -->
	<div id="menu">
		<div id='logobox'>
				<?php echo image_tag("logo.gif",'width=70px'); ?>
		</div>
			<div id="sub_menu">
		<?php if (!include_slot('submenu')): ?>

		  <!-- default sidebar code -->

		<?php endif; ?>
		</div>
		<div id='sidemenu'>
		<ul>
			<li></li>
			<li><?php echo link_to('Home', '@homepage') ?></li>
	<?php if ($sf_user->isAuthenticated()): ?>
			<li><?php echo link_to('MC', 'mc/index') ?></li>
			<li><?php echo link_to('Logout', 'sfGuardAuth/signout') ?></li>

 <?php endif; ?>
		</ul>
		</div>
	</div>
	<!-- end #menu -->
	<div id="page">
	<div id="page-bgtop">
<?php
function getUrl()
{
 $pageURL = 'http';
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 
 $xp = explode("/",$pageURL);
 $mcs= array_search("mc", $xp, true);
 $pxs= array_search("px", $xp, true);
 $officers= array_search("officers", $xp, true);
 $show =array_search("show", $xp, true);
if(($mcs!=0)OR($officers!=0))
{
	$link=$xp[$mcs];
     return $link;
}
elseif(($pxs!=0)&&($show!=0)) 
{
	$link=$xp[$pxs]."/".$xp[$show];
	 return $link;
}
}
?>	


	
	</div>

	<div id="page-bgbtm">
		<div id="content">
			<div class="post">
			<div class="post-bgtop">
			<div class="post-bgbtm">
				<div class = "formlayout">
					<br />
	    			<?php echo $sf_content ?>
	    		</div>
			</div>
			</div>
			</div>	
		<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->

		<!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	</div>
	<!-- end #page -->
	<div id="footer">
		<p>Copyright (c) 2009 transnationaltravel.ph. All rights reserved. Webapp by <a href="http://teamwebmanila.co.cc/wordpress">Team Web Manila</a>.</p>
	</div>
	<!-- end #footer -->
  </div>
  </body>
</html>